package com.wnxy.sddfp.client.bank.api.fallback;

import com.wnxy.sddfp.client.bank.api.TradeLogApi;
import com.wnxy.sddfp.common.model.dto.bank.BankCardAddDTO;
import com.wnxy.sddfp.common.model.dto.bank.SignatureDto;
import com.wnxy.sddfp.common.model.result.BaseResult;
import com.wnxy.sddfp.common.model.result.Result;
import com.wnxy.sddfp.common.model.vo.BorrowSyncRecordVo;
import org.springframework.stereotype.Component;

@Component
public class TradeLogApiFallBack implements TradeLogApi {
    @Override
    public Result<BaseResult> syncBorrowRecord(BorrowSyncRecordVo borrowSyncRecordVo) {
        BaseResult baseResult = new BaseResult();
        baseResult.setRespCode(Integer.valueOf("服务降级的字符串"));
        baseResult.setRespMsg("成功");
        baseResult.setStatus(1);
        baseResult.setRequestNo("Fail");
        return Result.ok(baseResult);

    }

    @Override
    public SignatureDto proxyBindCardLog(BankCardAddDTO bankCardAddDTO) {
        return null;
    }

    @Override
    public Result test01(Integer id) {

        return Result.ok("服务降级...");
    }
}
